<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:t="http://myfaces.apache.org/tomahawk"
	template="/pages/template/main-layout.xhtml">

	<ui:define name="content">


			<p:panelGrid columns="2" cellpadding="5" style="width:95%;">
				<f:facet name="header">
					<h:outputText value="#{msgs.header_modifypassword}" />
				</f:facet>
				<h:outputLabel for="username" value="#{msgs.login_user}" />
				<h:outputText id="username" value="#{sessionUserBean.userName}" />

				<h:outputLabel for="password" value="#{msgs.login_password}" />
				<h:inputSecret id="password" value="#{headerBean.mp.userPwd}" size="40" maxlength="20"
					 required="true" label="#{msgs.login_password}"/>

				<h:outputLabel for="newpassword" value="#{msgs.login_new_password}" />
				<h:inputSecret id="newpassword" value="#{headerBean.mp.newPwd}" size="40" maxlength="20"
					 required="true" label="#{msgs.login_new_password}"/>

				<h:outputLabel for="confirmpass" value="#{msgs.login_confim_password}" />
				<h:inputSecret id="confirmpass" value="#{headerBean.mp.confimPwd}" size="40" maxlength="20"
					 required="true" label="#{msgs.login_confim_password}"/>

				<f:facet name="footer">
					<t:panelGroup style="float:right">
						<p:commandButton update=":messages" ajax="false" action="#{headerBean.changePwdAction}"
							onmousedown="return modifyPwd();" value="#{msgs.button_submit}" image="ui-icon-disk" />
					</t:panelGroup>
				</f:facet>
			</p:panelGrid>

	</ui:define>
</ui:composition>
